package com.job.feign.client.posts;

import com.job.client.common.result.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "client-posts-service",path = "/api/v1/client/posts")
public interface PostsFeign {
    @PostMapping("/info")
    public ResponseResult getPostsInfo(@RequestBody String postsId);
    @PostMapping("/all/info/list")
    public ResponseResult getAllInfoList(@RequestBody List<String> postsIds);
    @GetMapping("/count/company")
    public ResponseResult getCountByCompanyId(@RequestParam String companyId);
}
